import { prop, modelOptions } from '@typegoose/typegoose' 
import { ApiProperty } from '@nestjs/swagger' 

@modelOptions({
    schemaOptions: {
        timestamps: true
    }
})
export class Banner {

    @prop()
    @ApiProperty({ description: '标题'})
    title: string
    
    @prop()
    @ApiProperty({ description: '简介'})
    Subtitle: string

    @prop()
    @ApiProperty({ description: '封面'})
    cover: string


    @prop()
    @ApiProperty({ description: '视频'})
    video: string

    @prop()
    @ApiProperty({ description: '链接'})
    link: string
}